tsereno commited on
Commit
7c0cfe6
1 Parent(s): 2c0e9c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -72,8 +72,8 @@ def bot(
72
  content = f.read()
73
  # Decode the byte string to a UTF-8 string (assuming text file)
74
  file_contents.append(content.decode('utf-8'))
75
-
76
- text_prompt = file_contents + " " + str(chatbot[-1][0])
77
  genai.configure(api_key=google_key)
78
  generation_config = genai.types.GenerationConfig(
79
  temperature=temperature,
 
72
  content = f.read()
73
  # Decode the byte string to a UTF-8 string (assuming text file)
74
  file_contents.append(content.decode('utf-8'))
75
+ chatbot[-1] = (file_contents + chatbot[-1][0], chatbot[-1][1])
76
+ text_prompt = chatbot[-1][0]
77
  genai.configure(api_key=google_key)
78
  generation_config = genai.types.GenerationConfig(
79
  temperature=temperature,