Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ async def respond(
|
|
29 |
|
30 |
response = ""
|
31 |
|
32 |
-
|
33 |
messages,
|
34 |
max_tokens=max_tokens,
|
35 |
stream=True,
|
@@ -63,4 +63,4 @@ demo = gr.ChatInterface(
|
|
63 |
|
64 |
|
65 |
if __name__ == "__main__":
|
66 |
-
demo.queue().launch()
|
|
|
29 |
|
30 |
response = ""
|
31 |
|
32 |
+
for message in client.chat_completion(
|
33 |
messages,
|
34 |
max_tokens=max_tokens,
|
35 |
stream=True,
|
|
|
63 |
|
64 |
|
65 |
if __name__ == "__main__":
|
66 |
+
demo.queue().launch(share=True) # Added `share=True` for a public link
|