Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ querieslist=prompt.split('SEPERATOR')[1].split(',')
|
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
-
def
|
| 41 |
print(text_inp1,text_inp2)
|
| 42 |
print(datetime.today().strftime("%d-%m-%Y"))
|
| 43 |
if text_inp2!='':
|
|
@@ -81,7 +81,7 @@ with gr.Blocks() as demo:
|
|
| 81 |
textbox2 = gr.Textbox(placeholder="Enter OpenAPI Key...", lines=1,label='OpenAPI Key')
|
| 82 |
with gr.Column():
|
| 83 |
btn = gr.Button("Generate")
|
| 84 |
-
output1 = gr.Textbox(lines=
|
| 85 |
|
| 86 |
btn.click(getblog,inputs=[textbox1,textbox2], outputs=[output1])
|
| 87 |
examples = gr.Examples(examples=['5G','Minimalism','Rock music'],
|
|
|
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
+
def getblog(text_inp1,text_inp2):
|
| 41 |
print(text_inp1,text_inp2)
|
| 42 |
print(datetime.today().strftime("%d-%m-%Y"))
|
| 43 |
if text_inp2!='':
|
|
|
|
| 81 |
textbox2 = gr.Textbox(placeholder="Enter OpenAPI Key...", lines=1,label='OpenAPI Key')
|
| 82 |
with gr.Column():
|
| 83 |
btn = gr.Button("Generate")
|
| 84 |
+
output1 = gr.Textbox(lines=20,label='Blog')
|
| 85 |
|
| 86 |
btn.click(getblog,inputs=[textbox1,textbox2], outputs=[output1])
|
| 87 |
examples = gr.Examples(examples=['5G','Minimalism','Rock music'],
|