Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,6 +28,8 @@ def toggle_all(prompt):
|
|
| 28 |
answer = response.choices[0].message.content
|
| 29 |
#answer = prompt+" answered."
|
| 30 |
return gr.update(visible=True), answer
|
|
|
|
|
|
|
| 31 |
|
| 32 |
def hello(profile: gr.OAuthProfile | None) -> str:
|
| 33 |
# ^ expect a gr.OAuthProfile object as input to get the user's profile
|
|
|
|
| 28 |
answer = response.choices[0].message.content
|
| 29 |
#answer = prompt+" answered."
|
| 30 |
return gr.update(visible=True), answer
|
| 31 |
+
else:
|
| 32 |
+
print("no prompt")
|
| 33 |
|
| 34 |
def hello(profile: gr.OAuthProfile | None) -> str:
|
| 35 |
# ^ expect a gr.OAuthProfile object as input to get the user's profile
|