privateuserh commited on
Commit
cdcde12
·
verified ·
1 Parent(s): a82210b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -44,7 +44,7 @@ def get_actor_advice(user_query, script_input, character_name_input):
44
 
45
  # 4. Update conversation history with user query and LLM response
46
  conversation_history.append({"role": "user", "content": user_query})
47
- conversation_history.append({"role": "assistant", "content": llm_response})
48
 
49
  return llm_response
50
  except requests.exceptions.RequestException as e:
@@ -56,7 +56,7 @@ def get_actor_advice(user_query, script_input, character_name_input):
56
 
57
  # --- Frontend UI with Gradio ---
58
  with gr.Blocks() as demo:
59
- gr.Markdown("# Actor's LLM Assistant")
60
  gr.Markdown("Enter your script and ask for acting advice for your character. The AI will remember past queries in the current session.")
61
 
62
  with gr.Row():
 
44
 
45
  # 4. Update conversation history with user query and LLM response
46
  conversation_history.append({"role": "user", "content": user_query})
47
+ conversation_history.append({"role": "actor", "content": llm_response})
48
 
49
  return llm_response
50
  except requests.exceptions.RequestException as e:
 
56
 
57
  # --- Frontend UI with Gradio ---
58
  with gr.Blocks() as demo:
59
+ gr.Markdown("# Actor's LLM")
60
  gr.Markdown("Enter your script and ask for acting advice for your character. The AI will remember past queries in the current session.")
61
 
62
  with gr.Row():