dromerosm commited on
Commit
918909f
1 Parent(s): bec9f78

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -76,7 +76,7 @@ Una vez generada la respuesta, aplicale formato HTML"""
76
  engine="gpt-35-turbo-version-0301",
77
  messages=[
78
  {"role": "system", "content": system_role},
79
- {"role": "user", "content": request + "\n\n" + 'Text:\n\n"' + page_text + '\n"'}
80
  ],
81
  max_tokens=1024,
82
  temperature=temp,
@@ -110,9 +110,7 @@ iface = gr.Interface(
110
  ],
111
  outputs=[gr.Textbox(label="Text from URL:"),
112
  gr.Markdown(label="Output from GPT:"),
113
- gr.Markdown(label="Total Tokens:")],
114
- 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],
115
- ["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]
116
  ],
117
  title="ChatGPT - KYC from URL",
118
  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.
 
76
  engine="gpt-35-turbo-version-0301",
77
  messages=[
78
  {"role": "system", "content": system_role},
79
+ {"role": "user", "content": request + "\n\n" + 'Text:\n\n"' + page_text}
80
  ],
81
  max_tokens=1024,
82
  temperature=temp,
 
110
  ],
111
  outputs=[gr.Textbox(label="Text from URL:"),
112
  gr.Markdown(label="Output from GPT:"),
113
+ gr.Markdown(label="Total Tokens:")]
 
 
114
  ],
115
  title="ChatGPT - KYC from URL",
116
  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.