awacke1 commited on
Commit
5d2f200
·
1 Parent(s): 6b3bddd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -14
app.py CHANGED
@@ -79,19 +79,6 @@ def generate_html() -> str:
79
  html += "</div>"
80
  html += "</div>"
81
  return html
82
-
83
-
84
- iface = gr.Interface(
85
- persist_memory,
86
- [
87
- inputs.Textbox(placeholder="Your name"),
88
- inputs.Textbox(placeholder="Your message", lines=2),
89
- ],
90
- "html",
91
- css="""
92
- .message {background-color:cornflowerblue;color:white; padding:4px;margin:4px;border-radius:4px; }
93
- """,
94
- )
95
 
96
  #store_message(message, response) # Save to dataset
97
 
@@ -106,7 +93,7 @@ iface = gr.Interface(
106
  #generator1 = gr.Interface(lambda name: f"Hello {name}!", inputs="textbox", outputs=gr.Textbox(label="GPT2-Large")).load("huggingface/gpt2-large", api_key=HF_TOKEN)
107
 
108
 
109
- tbOutput = gr.Textbox(label="GPT Output")
110
  #generator1 = gr.Interface(lambda name: f"Hello {name}!", inputs="textbox", outputs=[tbOutput]).load("huggingface/gpt2-large", api_key=HF_TOKEN)
111
  #generator1 = generator1 = gr.Interface.load("huggingface/gpt2-large", api_key=HF_TOKEN)
112
  #generator2 = gr.Interface.load("huggingface/EleutherAI/gpt-neo-2.7B", api_key=HF_TOKEN)
 
79
  html += "</div>"
80
  html += "</div>"
81
  return html
 
 
 
 
 
 
 
 
 
 
 
 
 
82
 
83
  #store_message(message, response) # Save to dataset
84
 
 
93
  #generator1 = gr.Interface(lambda name: f"Hello {name}!", inputs="textbox", outputs=gr.Textbox(label="GPT2-Large")).load("huggingface/gpt2-large", api_key=HF_TOKEN)
94
 
95
 
96
+ #tbOutput = gr.Textbox(label="GPT Output")
97
  #generator1 = gr.Interface(lambda name: f"Hello {name}!", inputs="textbox", outputs=[tbOutput]).load("huggingface/gpt2-large", api_key=HF_TOKEN)
98
  #generator1 = generator1 = gr.Interface.load("huggingface/gpt2-large", api_key=HF_TOKEN)
99
  #generator2 = gr.Interface.load("huggingface/EleutherAI/gpt-neo-2.7B", api_key=HF_TOKEN)