eaglelandsonce commited on
Commit
5e42be9
1 Parent(s): 6ae0f34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -251,6 +251,10 @@ chatbot_component = gr.Chatbot(
251
  text_prompt_component = gr.Textbox(value=movie_script_analysis,
252
  show_label=False, autofocus=True, scale=8, lines=8
253
  )
 
 
 
 
254
  upload_button_component = gr.UploadButton(
255
  label="Upload Images", file_count="multiple", file_types=["image"], scale=1
256
  )
@@ -344,6 +348,8 @@ bot_inputs = [
344
  #Crew imports
345
  from crewai import Agent, Task, Crew, Process
346
 
 
 
347
  # Set gemini_llm
348
  gemini_llm = GoogleGenerativeAI(model="gemini-pro", google_api_key=GOOGLE_AI_STUDIO)
349
 
@@ -502,7 +508,7 @@ with gr.Blocks() as demo:
502
 
503
  run_button_crewai.click(
504
  fn=crewai_process,
505
- inputs=research_topic,
506
  outputs="text"
507
  )
508
 
 
251
  text_prompt_component = gr.Textbox(value=movie_script_analysis,
252
  show_label=False, autofocus=True, scale=8, lines=8
253
  )
254
+
255
+
256
+
257
+
258
  upload_button_component = gr.UploadButton(
259
  label="Upload Images", file_count="multiple", file_types=["image"], scale=1
260
  )
 
348
  #Crew imports
349
  from crewai import Agent, Task, Crew, Process
350
 
351
+ research_topic_component = gr.Textbox(lines=2, placeholder="Enter Research Topic Here...")
352
+
353
  # Set gemini_llm
354
  gemini_llm = GoogleGenerativeAI(model="gemini-pro", google_api_key=GOOGLE_AI_STUDIO)
355
 
 
508
 
509
  run_button_crewai.click(
510
  fn=crewai_process,
511
+ inputs=research_topic_component,
512
  outputs="text"
513
  )
514