Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -103,13 +103,13 @@ iface = gr.Interface(
|
|
103 |
fn=text_prompt,
|
104 |
inputs=[
|
105 |
gr.Textbox(lines=1, placeholder="Enter the Article's URL here...", label="Article's URL to analyse:", type="text"),
|
106 |
-
gr.Textbox(lines=1, placeholder="Enter the MSFT Azure OpenAI endpoint here...", label="Azure endpoint:", type="text")
|
107 |
gr.Textbox(lines=1, placeholder="Enter your API-key here...", label="API-Key:", type="password"),
|
108 |
gr.Slider(0.0,1.0, value=0.3, label="Temperature:")
|
109 |
],
|
110 |
outputs=[gr.Textbox(label="Text from URL:"), gr.Markdown(label="Output from GPT:"), gr.Markdown(label="Total Tokens:")],
|
111 |
examples=[[ "https://www.eleconomista.es/andalucia/noticias/11534190/12/21/Nueva-condena-a-ex-presidente-de-Invercaria-por-dar-300000-euros-a-una-empresa-inviable.html","","",0.2],
|
112 |
-
["https://www.eleconomista.es/andalucia/noticias/11533733/12/21/El-juez-procesa-a-35-investigados-en-la-pieza-de-las-sobrecomisiones-de-los-ERE-.html","","",0.
|
113 |
],
|
114 |
title="ChatGPT - KYC from URL",
|
115 |
description="""This tool allows to generate points of a KYC report based on the text retrieved from the URL using the [gpt-3.5-turbo] engine of MSFT Azure OpenAI.
|
@@ -121,7 +121,7 @@ iface = gr.Interface(
|
|
121 |
error_message = ""
|
122 |
|
123 |
try:
|
124 |
-
iface.queue(concurrency_count=
|
125 |
iface.launch()
|
126 |
except Exception as e:
|
127 |
error_message = "An error occurred: " + str(e)
|
|
|
103 |
fn=text_prompt,
|
104 |
inputs=[
|
105 |
gr.Textbox(lines=1, placeholder="Enter the Article's URL here...", label="Article's URL to analyse:", type="text"),
|
106 |
+
gr.Textbox(lines=1, placeholder="Enter the MSFT Azure OpenAI endpoint here...", label="Azure endpoint:", type="text"),
|
107 |
gr.Textbox(lines=1, placeholder="Enter your API-key here...", label="API-Key:", type="password"),
|
108 |
gr.Slider(0.0,1.0, value=0.3, label="Temperature:")
|
109 |
],
|
110 |
outputs=[gr.Textbox(label="Text from URL:"), gr.Markdown(label="Output from GPT:"), gr.Markdown(label="Total Tokens:")],
|
111 |
examples=[[ "https://www.eleconomista.es/andalucia/noticias/11534190/12/21/Nueva-condena-a-ex-presidente-de-Invercaria-por-dar-300000-euros-a-una-empresa-inviable.html","","",0.2],
|
112 |
+
["https://www.eleconomista.es/andalucia/noticias/11533733/12/21/El-juez-procesa-a-35-investigados-en-la-pieza-de-las-sobrecomisiones-de-los-ERE-.html","","",0.2]
|
113 |
],
|
114 |
title="ChatGPT - KYC from URL",
|
115 |
description="""This tool allows to generate points of a KYC report based on the text retrieved from the URL using the [gpt-3.5-turbo] engine of MSFT Azure OpenAI.
|
|
|
121 |
error_message = ""
|
122 |
|
123 |
try:
|
124 |
+
iface.queue(concurrency_count=5)
|
125 |
iface.launch()
|
126 |
except Exception as e:
|
127 |
error_message = "An error occurred: " + str(e)
|