Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,7 +52,7 @@ def get_logo(inputs, logo) -> str:
|
|
| 52 |
def get_status(inputs, logo, pos) -> str:
|
| 53 |
return f"""<img
|
| 54 |
src = "{get_logo(inputs, logo)}";
|
| 55 |
-
style = "margin: 0 auto;
|
| 56 |
>"""
|
| 57 |
|
| 58 |
|
|
@@ -60,8 +60,8 @@ KEY_INIT = "Initialize Model"
|
|
| 60 |
KEY_SUBMIT = "Submit"
|
| 61 |
KEY_CLEAR = "Clear"
|
| 62 |
|
| 63 |
-
MODEL_NULL = get_status(LLM_NULL, "openai", "
|
| 64 |
-
MODEL_DONE = get_status(LLM_DONE, "openai", "
|
| 65 |
|
| 66 |
DOCS_NULL = get_status(DB_NULL, "processingfoundation", "right")
|
| 67 |
DOCS_DONE = get_status(DB_DONE, "processingfoundation", "right")
|
|
@@ -225,7 +225,7 @@ def bot(box_message, ref_message,
|
|
| 225 |
#print(source)
|
| 226 |
|
| 227 |
box_message[-1][1] = bot_message
|
| 228 |
-
return box_message, "", [[details, bot_message + source]]
|
| 229 |
|
| 230 |
#----------------------------------------------------------------------------------------------------------
|
| 231 |
#----------------------------------------------------------------------------------------------------------
|
|
|
|
| 52 |
def get_status(inputs, logo, pos) -> str:
|
| 53 |
return f"""<img
|
| 54 |
src = "{get_logo(inputs, logo)}";
|
| 55 |
+
style = "margin: 0 auto;float:{pos};border: 2px solid transparent;";
|
| 56 |
>"""
|
| 57 |
|
| 58 |
|
|
|
|
| 60 |
KEY_SUBMIT = "Submit"
|
| 61 |
KEY_CLEAR = "Clear"
|
| 62 |
|
| 63 |
+
MODEL_NULL = get_status(LLM_NULL, "openai", "right")
|
| 64 |
+
MODEL_DONE = get_status(LLM_DONE, "openai", "right")
|
| 65 |
|
| 66 |
DOCS_NULL = get_status(DB_NULL, "processingfoundation", "right")
|
| 67 |
DOCS_DONE = get_status(DB_DONE, "processingfoundation", "right")
|
|
|
|
| 225 |
#print(source)
|
| 226 |
|
| 227 |
box_message[-1][1] = bot_message
|
| 228 |
+
return box_message, "", [[details, bot_message + '\n\nMetadata:\n' + source]]
|
| 229 |
|
| 230 |
#----------------------------------------------------------------------------------------------------------
|
| 231 |
#----------------------------------------------------------------------------------------------------------
|