Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,8 @@
|
|
| 1 |
import requests
|
| 2 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
thread = 0
|
| 5 |
|
|
@@ -7,7 +10,7 @@ def chat_history(message,history):
|
|
| 7 |
|
| 8 |
global thread
|
| 9 |
|
| 10 |
-
response = requests.post(
|
| 11 |
"query":message,
|
| 12 |
"thread": thread,
|
| 13 |
}).json()
|
|
|
|
| 1 |
import requests
|
| 2 |
import gradio as gr
|
| 3 |
+
import os
|
| 4 |
+
|
| 5 |
+
address = os.getenv("address")
|
| 6 |
|
| 7 |
thread = 0
|
| 8 |
|
|
|
|
| 10 |
|
| 11 |
global thread
|
| 12 |
|
| 13 |
+
response = requests.post(address, json={
|
| 14 |
"query":message,
|
| 15 |
"thread": thread,
|
| 16 |
}).json()
|