awacke1 commited on
Commit
a59e149
·
1 Parent(s): fbc8d88

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -114,6 +114,8 @@ iface = gr.Interface(
114
 
115
  #generator1 = gr.Interface(lambda name: f"Hello {name}!", inputs="textbox", outputs=gr.Textbox(label="GPT2-Large")).load("huggingface/gpt2-large", api_key=HF_TOKEN)
116
 
 
 
117
  generator1 = gr.Interface(lambda name: f"Hello {name}!", inputs="textbox", outputs=[tbOutput]).load("huggingface/gpt2-large", api_key=HF_TOKEN)
118
  generator2 = gr.Interface.load("huggingface/EleutherAI/gpt-neo-2.7B", api_key=HF_TOKEN)
119
  generator3 = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B", api_key=HF_TOKEN)
@@ -130,7 +132,6 @@ parallelModel = gr.Parallel(generator1,
130
  article=f"Memory Dataset URL: [{DATASET_REPO_URL}]({DATASET_REPO_URL})"
131
  )
132
 
133
- tbOutput = gr.Textbox(label="GPT Output")
134
  tbMemoryOutput = gr.Textbox(label="Memory Output")
135
  btnSave = gr.Button("Save")
136
  btnSave.click(fn=persist_memory, inputs=tbOutput, outputs=tbMemoryOutput)
 
114
 
115
  #generator1 = gr.Interface(lambda name: f"Hello {name}!", inputs="textbox", outputs=gr.Textbox(label="GPT2-Large")).load("huggingface/gpt2-large", api_key=HF_TOKEN)
116
 
117
+
118
+ tbOutput = gr.Textbox(label="GPT Output")
119
  generator1 = gr.Interface(lambda name: f"Hello {name}!", inputs="textbox", outputs=[tbOutput]).load("huggingface/gpt2-large", api_key=HF_TOKEN)
120
  generator2 = gr.Interface.load("huggingface/EleutherAI/gpt-neo-2.7B", api_key=HF_TOKEN)
121
  generator3 = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B", api_key=HF_TOKEN)
 
132
  article=f"Memory Dataset URL: [{DATASET_REPO_URL}]({DATASET_REPO_URL})"
133
  )
134
 
 
135
  tbMemoryOutput = gr.Textbox(label="Memory Output")
136
  btnSave = gr.Button("Save")
137
  btnSave.click(fn=persist_memory, inputs=tbOutput, outputs=tbMemoryOutput)