Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,6 +55,16 @@ def list_private_models(profile: gr.OAuthProfile | None, oauth_token: gr.OAuthTo
|
|
| 55 |
return profile.username, gr.update(visible=True), gr.update(visible=True)
|
| 56 |
|
| 57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
with gr.Blocks() as demo:
|
| 59 |
gr.Markdown(
|
| 60 |
"# Gradio OAuth Space"
|
|
|
|
| 55 |
return profile.username, gr.update(visible=True), gr.update(visible=True)
|
| 56 |
|
| 57 |
|
| 58 |
+
def process_eprag(prompt):
|
| 59 |
+
if prompt == "":
|
| 60 |
+
return "γγγ³γγγε
₯εγγ¦γγ γγγ", "γγγ³γγγ―εΏ
ι γ§γγ"
|
| 61 |
+
else:
|
| 62 |
+
url = 'http://www.ryhintl.com/eprag-be/llm?query='+prompt
|
| 63 |
+
res = requests.get(url)
|
| 64 |
+
rtn = res.content.decode('utf-8')
|
| 65 |
+
return rtn
|
| 66 |
+
|
| 67 |
+
|
| 68 |
with gr.Blocks() as demo:
|
| 69 |
gr.Markdown(
|
| 70 |
"# Gradio OAuth Space"
|