Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -138,7 +138,7 @@ def keywords(text,prompt_num,user_keywords):
|
|
138 |
return images,transcription,keyword_pool,generated_prompts
|
139 |
|
140 |
speech_text = gr.Interface(fn=transcribe, inputs=[gr.Audio(source="microphone", type="filepath"),gr.Number(label = "Number of Images to be generated (int): "),gr.Textbox(label = "Additional keywords (comma delimitied): ")], outputs=["text","number","text"], title = 'Speech to Image Generator', enable_queue=True)
|
141 |
-
text_prompts = gr.Interface(fn=keywords, title = 'Speech-to-Image-Generator', inputs=["text","number","text"], outputs=[gr.Gallery(label="Generated images", show_label=True, elem_id="gallery").style(grid=[2], height="auto"),gr.TextArea(label="Transcription"),gr.TextArea(label="Keywords"),gr.TextArea(label="Generated Prompts")], enable_queue=True)
|
142 |
|
143 |
gr.Series(speech_text,text_prompts).launch(auth = ('PWuser','speechtotextPW'), auth_message = '''<strong> Welcome to Perkins&Will's Synthesia Tool </strong> \n Use cases: Ideation/Brainstorming tool - Have it running in the background in a conference, brainstorming session, discussion to create contextually relevant visualizations for moodboarding, to spark more conversations, interactions and inspiration. ''',inline = False, enable_queue=True).queue()
|
144 |
|
|
|
138 |
return images,transcription,keyword_pool,generated_prompts
|
139 |
|
140 |
speech_text = gr.Interface(fn=transcribe, inputs=[gr.Audio(source="microphone", type="filepath"),gr.Number(label = "Number of Images to be generated (int): "),gr.Textbox(label = "Additional keywords (comma delimitied): ")], outputs=["text","number","text"], title = 'Speech to Image Generator', enable_queue=True)
|
141 |
+
text_prompts = gr.Interface(fn=keywords, title = 'Speech-to-Image-Generator', inputs=["text","number","text"], outputs=[gr.Gallery(label="Generated images", show_label=True, elem_id="gallery").style(grid=[2], height="auto"),gr.TextArea(label="Transcription"),gr.TextArea(label="Keywords"),gr.TextArea(label="Generated Prompts")], theme='darkhuggingface', enable_queue=True)
|
142 |
|
143 |
gr.Series(speech_text,text_prompts).launch(auth = ('PWuser','speechtotextPW'), auth_message = '''<strong> Welcome to Perkins&Will's Synthesia Tool </strong> \n Use cases: Ideation/Brainstorming tool - Have it running in the background in a conference, brainstorming session, discussion to create contextually relevant visualizations for moodboarding, to spark more conversations, interactions and inspiration. ''',inline = False, enable_queue=True).queue()
|
144 |
|