Update app.py
Browse files
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": "
|
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
|
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():
|