awacke1 commited on
Commit
ffb5d20
·
1 Parent(s): c41696c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -22
app.py CHANGED
@@ -120,27 +120,27 @@ def AIMemory(name: str, message: str):
120
  commit_url = repo.push_to_hub()
121
  return {"name": name, "message": message, "time": str(datetime.now())}
122
 
123
- with gr.Blocks() as Memory:
124
-
125
- #parallelModel = gr.Parallel(generator1, generator2, generator3, inputs = SplitterInputBox, examples=examples,
126
- # title="Mindfulness Story Generation with Persistent Dataset Memory",
127
- # description=f"Mindfulness Story Generation with Persistent Dataset Memory",
128
- # article=f"Memory Dataset URL: [{DATASET_REPO_URL}]({DATASET_REPO_URL})" )
129
-
130
- gr.Markdown("Mindfulness Story Generation with Persistent Dataset Memory")
131
- with gr.Row():
132
- inp = gr.Textbox(placeholder="What text would you like to extend with generation?")
133
- inp2 = gr.Textbox(placeholder="What text would you like to extend with generation?")
134
- out = gr.Textbox()
135
- out2 = gr.Textbox()
136
- out3 = gr.Textbox()
137
- btn = gr.Button("Run")
138
- btn.click(fn=AIMemory, inputs=[inp,inp], outputs=[out,out2,out3])
139
-
140
- Memory.launch()
141
-
142
- tbMemoryOutput = gr.Textbox(label="Memory Output")
143
- btnSave = gr.Button("Save")
144
  #btnSave.click(fn=persist_memory, inputs=[SplitterInputBox, tbOutput], outputs=tbMemoryOutput)
145
 
146
- parallelModel.launch(share=False)
 
120
  commit_url = repo.push_to_hub()
121
  return {"name": name, "message": message, "time": str(datetime.now())}
122
 
123
+ #with gr.Blocks() as Memory:
124
+
125
+ parallelModel = gr.Parallel(generator1, generator2, generator3, inputs = SplitterInputBox, examples=examples,
126
+ title="Mindfulness Story Generation with Persistent Dataset Memory",
127
+ description=f"Mindfulness Story Generation with Persistent Dataset Memory",
128
+ article=f"Memory Dataset URL: [{DATASET_REPO_URL}]({DATASET_REPO_URL})" )
129
+ #
130
+ # gr.Markdown("Mindfulness Story Generation with Persistent Dataset Memory")
131
+ # with gr.Row():
132
+ # inp = gr.Textbox(placeholder="What text would you like to extend with generation?")
133
+ # inp2 = gr.Textbox(placeholder="What text would you like to extend with generation?")
134
+ # out = gr.Textbox()
135
+ # out2 = gr.Textbox()
136
+ # out3 = gr.Textbox()
137
+ # btn = gr.Button("Run")
138
+ # btn.click(fn=AIMemory, inputs=[inp,inp], outputs=[out,out2,out3])
139
+
140
+ parallelModel.launch()
141
+
142
+ #tbMemoryOutput = gr.Textbox(label="Memory Output")
143
+ #btnSave = gr.Button("Save")
144
  #btnSave.click(fn=persist_memory, inputs=[SplitterInputBox, tbOutput], outputs=tbMemoryOutput)
145
 
146
+ #parallelModel.launch(share=False)