Spaces:
Running
Running
Commit
·
7d0b23a
1
Parent(s):
16fd271
Update app.py
Browse files
app.py
CHANGED
@@ -57,15 +57,16 @@ async def main():
|
|
57 |
await client.send_message(chat_id, response)
|
58 |
reply_times[sender_id] = time.time()
|
59 |
|
60 |
-
|
61 |
-
|
|
|
|
|
|
|
62 |
|
63 |
# تعريف حقول النص في Gradio
|
64 |
|
65 |
# تعريف الواجهة
|
66 |
-
|
67 |
-
output = "text"
|
68 |
-
gr.Interface(fn=main, inputs=inputs, outputs=output).launch()
|
69 |
|
70 |
# Run the main function in the event loop
|
71 |
# client.loop.run_until_complete(main())
|
|
|
57 |
await client.send_message(chat_id, response)
|
58 |
reply_times[sender_id] = time.time()
|
59 |
|
60 |
+
inputs = []
|
61 |
+
output = "text"
|
62 |
+
gr.Interface(fn=main, inputs=inputs, outputs=output).launch()
|
63 |
+
await client.run_until_disconnected()
|
64 |
+
# client.loop.run_until_complete(main())
|
65 |
|
66 |
# تعريف حقول النص في Gradio
|
67 |
|
68 |
# تعريف الواجهة
|
69 |
+
|
|
|
|
|
70 |
|
71 |
# Run the main function in the event loop
|
72 |
# client.loop.run_until_complete(main())
|