Spaces:
Sleeping
Sleeping
Commit ·
301b9eb
1
Parent(s): cfc411f
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,6 @@ def predict(message: str, history: List[List[str]], about_me: str) -> str:
|
|
| 19 |
"question": message,
|
| 20 |
"to_load_history": history,
|
| 21 |
}
|
| 22 |
-
|
| 23 |
|
| 24 |
url = "https://idzhj.apps.beam.cloud"
|
| 25 |
headers = {
|
|
@@ -34,8 +33,7 @@ def predict(message: str, history: List[List[str]], about_me: str) -> str:
|
|
| 34 |
headers=headers,
|
| 35 |
data=json.dumps(payload)
|
| 36 |
)
|
| 37 |
-
|
| 38 |
-
yield response
|
| 39 |
|
| 40 |
|
| 41 |
demo = gr.ChatInterface(
|
|
|
|
| 19 |
"question": message,
|
| 20 |
"to_load_history": history,
|
| 21 |
}
|
|
|
|
| 22 |
|
| 23 |
url = "https://idzhj.apps.beam.cloud"
|
| 24 |
headers = {
|
|
|
|
| 33 |
headers=headers,
|
| 34 |
data=json.dumps(payload)
|
| 35 |
)
|
| 36 |
+
return response
|
|
|
|
| 37 |
|
| 38 |
|
| 39 |
demo = gr.ChatInterface(
|