Update app.py
Browse files
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 =
|
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,
|