jcmachicao commited on
Commit
1a4d8c2
verified
1 Parent(s): 70944d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -10
app.py CHANGED
@@ -6,15 +6,6 @@ from openai import OpenAI
6
  api_key = os.getenv("OPENAI_KEY")
7
  client = OpenAI(api_key=api_key)
8
 
9
- html_content = """
10
- <script>
11
- document.body.insertAdjacentHTML(
12
- 'afterbegin',
13
- '<img src="file/gdmk_logo.png" alt="GDMK Logo" style="width:200px; margin-bottom: 20px;">'
14
- );
15
- </script>
16
- """
17
-
18
  # Define the LLM function
19
  def generacion_llm(texto_input):
20
  # Define the system and user messages
@@ -70,7 +61,6 @@ def generacion_llm(texto_input):
70
  # Define Gradio app
71
  with gr.Blocks() as interface:
72
  # Title and description
73
- gr.HTML(html_content)
74
  gr.Markdown(
75
  """
76
  # Estructurador de Autodiagn贸stico
@@ -85,5 +75,8 @@ with gr.Blocks() as interface:
85
  # Link the input/output and function
86
  submit_button.click(fn=generacion_llm, inputs=input_text, outputs=output_json)
87
 
 
 
 
88
  # Launch the interface
89
  interface.launch(share=True)
 
6
  api_key = os.getenv("OPENAI_KEY")
7
  client = OpenAI(api_key=api_key)
8
 
 
 
 
 
 
 
 
 
 
9
  # Define the LLM function
10
  def generacion_llm(texto_input):
11
  # Define the system and user messages
 
61
  # Define Gradio app
62
  with gr.Blocks() as interface:
63
  # Title and description
 
64
  gr.Markdown(
65
  """
66
  # Estructurador de Autodiagn贸stico
 
75
  # Link the input/output and function
76
  submit_button.click(fn=generacion_llm, inputs=input_text, outputs=output_json)
77
 
78
+ gr.Markdown(
79
+ """Potenciado por GestioDin谩mica(c)2024"""
80
+ )
81
  # Launch the interface
82
  interface.launch(share=True)