alanchen1115
commited on
Update main.py
Browse files
main.py
CHANGED
@@ -28,7 +28,7 @@ app.add_middleware(
|
|
28 |
@app.get("/")
|
29 |
def root():
|
30 |
def get_gemini_response(input):
|
31 |
-
response = model.generate_content(input)
|
32 |
return response.text
|
33 |
# Define the Gradio interface
|
34 |
iface = gr.Interface(
|
|
|
28 |
@app.get("/")
|
29 |
def root():
|
30 |
def get_gemini_response(input):
|
31 |
+
response = model.generate_content(input, generation_config=generation_config)
|
32 |
return response.text
|
33 |
# Define the Gradio interface
|
34 |
iface = gr.Interface(
|