Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,14 +23,6 @@ def generate(prompt):
|
|
| 23 |
convo.send_message(prompt)
|
| 24 |
return convo.last.text
|
| 25 |
|
| 26 |
-
'''
|
| 27 |
-
def generate(prompt, history):
|
| 28 |
-
response = genai.chat(
|
| 29 |
-
messages=prompt)
|
| 30 |
-
|
| 31 |
-
return response.last'''
|
| 32 |
-
|
| 33 |
-
|
| 34 |
llava=gr.ChatInterface(
|
| 35 |
fn=generate,
|
| 36 |
chatbot=gr.Chatbot(show_label=False, avatar_images=(a, 'llava-logo.svg'), show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
|
|
|
| 23 |
convo.send_message(prompt)
|
| 24 |
return convo.last.text
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
llava=gr.ChatInterface(
|
| 27 |
fn=generate,
|
| 28 |
chatbot=gr.Chatbot(show_label=False, avatar_images=(a, 'llava-logo.svg'), show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|