aasherkamal216 commited on
Commit
0a60e3b
·
unverified ·
1 Parent(s): 8f03d98

Update test4.py

Browse files
Files changed (1) hide show
  1. test4.py +2 -1
test4.py CHANGED
@@ -136,8 +136,9 @@ def messages_to_gemini(messages):
136
  while file.state.name == "PROCESSING":
137
  st.write('##----*---##')
138
  time.sleep(10)
 
139
  gemini_message["parts"].append(file)
140
- st.write("Huraaaa")
141
 
142
 
143
  except Exception as e:
 
136
  while file.state.name == "PROCESSING":
137
  st.write('##----*---##')
138
  time.sleep(10)
139
+ file = genai.get_file(file.name)
140
  gemini_message["parts"].append(file)
141
+ st.write("Hurraaaa")
142
 
143
 
144
  except Exception as e: