fudii0921 commited on
Commit
4be3c4f
Β·
verified Β·
1 Parent(s): 1127cdc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
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"