Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
c375c59
1
Parent(s):
a1908d6
test
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ async def monitor_server():
|
|
31 |
while True:
|
32 |
async with aiohttp.ClientSession() as session:
|
33 |
try:
|
34 |
-
async with session.get("http://localhost:18888/
|
35 |
if response.status == 200:
|
36 |
print("Server is running.")
|
37 |
else:
|
@@ -99,6 +99,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as app:
|
|
99 |
bot, chatbot, chatbot
|
100 |
)
|
101 |
clear.click(lambda: None, None, chatbot, queue=False)
|
|
|
102 |
|
103 |
app.queue()
|
104 |
app.launch()
|
|
|
31 |
while True:
|
32 |
async with aiohttp.ClientSession() as session:
|
33 |
try:
|
34 |
+
async with session.get("http://localhost:18888/") as response:
|
35 |
if response.status == 200:
|
36 |
print("Server is running.")
|
37 |
else:
|
|
|
99 |
bot, chatbot, chatbot
|
100 |
)
|
101 |
clear.click(lambda: None, None, chatbot, queue=False)
|
102 |
+
|
103 |
|
104 |
app.queue()
|
105 |
app.launch()
|