Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -373,7 +373,8 @@ def process_with_gpt(text_input):
|
|
373 |
return_text = completion.choices[0].message.content
|
374 |
st.write("GPT-4o: " + return_text)
|
375 |
|
376 |
-
filename = generate_filename(text_input, "md")
|
|
|
377 |
create_file(filename, text_input, return_text)
|
378 |
st.session_state.messages.append({"role": "assistant", "content": return_text})
|
379 |
return return_text
|
@@ -391,7 +392,8 @@ def process_with_claude(text_input):
|
|
391 |
response_text = response.content[0].text
|
392 |
st.write("Claude: " + response_text)
|
393 |
|
394 |
-
filename = generate_filename(text_input, "md")
|
|
|
395 |
create_file(filename, text_input, response_text)
|
396 |
|
397 |
st.session_state.chat_history.append({
|
|
|
373 |
return_text = completion.choices[0].message.content
|
374 |
st.write("GPT-4o: " + return_text)
|
375 |
|
376 |
+
#filename = generate_filename(text_input, "md")
|
377 |
+
filename = generate_filename("GPT-4o: " + return_text, "md")
|
378 |
create_file(filename, text_input, return_text)
|
379 |
st.session_state.messages.append({"role": "assistant", "content": return_text})
|
380 |
return return_text
|
|
|
392 |
response_text = response.content[0].text
|
393 |
st.write("Claude: " + response_text)
|
394 |
|
395 |
+
#filename = generate_filename(text_input, "md")
|
396 |
+
filename = generate_filename("GPT-4o: " + response_text, "md")
|
397 |
create_file(filename, text_input, response_text)
|
398 |
|
399 |
st.session_state.chat_history.append({
|