Hans Han
commited on
Commit
·
504b217
1
Parent(s):
ffea11d
adding async
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import os
|
2 |
import gradio as gr
|
|
|
3 |
import requests
|
4 |
import inspect
|
5 |
import pandas as pd
|
@@ -39,7 +40,7 @@ class BasicAgent:
|
|
39 |
llm=llm
|
40 |
)
|
41 |
# Example query agent might receive
|
42 |
-
fixed_answer = agent.run(question)
|
43 |
return fixed_answer
|
44 |
|
45 |
def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
|
1 |
import os
|
2 |
import gradio as gr
|
3 |
+
import asyncio
|
4 |
import requests
|
5 |
import inspect
|
6 |
import pandas as pd
|
|
|
40 |
llm=llm
|
41 |
)
|
42 |
# Example query agent might receive
|
43 |
+
fixed_answer = await agent.run(question)
|
44 |
return fixed_answer
|
45 |
|
46 |
def run_and_submit_all( profile: gr.OAuthProfile | None):
|