Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,9 +12,9 @@ build_curl_prompt="curl ${g2url} -X POST -d '{\"inputs\":\"${prompt}\",\"paramet
|
|
12 |
url_input = gr.Textbox(label="URL", value=g2url, visible=True)
|
13 |
prompt_input = gr.Textbox(label="Prompt", value=prompt, visible=True)
|
14 |
outputs = gr.Textbox(label="Generated Text")
|
15 |
-
resp = requests.post(url, data=json.dumps(prompt))
|
16 |
|
17 |
def text_gen(url, prompt):
|
|
|
18 |
return resp.text
|
19 |
|
20 |
demo = gr.Interface(
|
|
|
12 |
url_input = gr.Textbox(label="URL", value=g2url, visible=True)
|
13 |
prompt_input = gr.Textbox(label="Prompt", value=prompt, visible=True)
|
14 |
outputs = gr.Textbox(label="Generated Text")
|
|
|
15 |
|
16 |
def text_gen(url, prompt):
|
17 |
+
resp = requests.post(g2url, data=json.dumps(prompt))
|
18 |
return resp.text
|
19 |
|
20 |
demo = gr.Interface(
|