Update app.py
Browse files
app.py
CHANGED
|
@@ -352,7 +352,7 @@ def create_picture(history, prompt):
|
|
| 352 |
#Image.open(response.raw)
|
| 353 |
|
| 354 |
|
| 355 |
-
def invoke (prompt, history, rag_option, model_option, openai_api_key, k=3, top_p=0.6, temperature=0.5, max_new_tokens=4048, max_context_length_tokens=2048, repetition_penalty=1.3,):
|
| 356 |
global splittet
|
| 357 |
print(splittet)
|
| 358 |
#Prompt an history anhängen und einen Text daraus machen
|
|
@@ -532,6 +532,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
| 532 |
fn=invoke,
|
| 533 |
inputs=[
|
| 534 |
user_question,
|
|
|
|
| 535 |
chatbot,
|
| 536 |
#history,
|
| 537 |
rag_option,
|
|
|
|
| 352 |
#Image.open(response.raw)
|
| 353 |
|
| 354 |
|
| 355 |
+
def invoke (prompt, file, history, rag_option, model_option, openai_api_key, k=3, top_p=0.6, temperature=0.5, max_new_tokens=4048, max_context_length_tokens=2048, repetition_penalty=1.3,):
|
| 356 |
global splittet
|
| 357 |
print(splittet)
|
| 358 |
#Prompt an history anhängen und einen Text daraus machen
|
|
|
|
| 532 |
fn=invoke,
|
| 533 |
inputs=[
|
| 534 |
user_question,
|
| 535 |
+
upload,
|
| 536 |
chatbot,
|
| 537 |
#history,
|
| 538 |
rag_option,
|