Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -101,7 +101,7 @@ def inference(image, question, max_new_tokens=1024, temperature=0.7):
|
|
| 101 |
return f"An error occurred: {str(e)}"
|
| 102 |
|
| 103 |
# Create Gradio interface
|
| 104 |
-
with gr.Blocks(title="Robust-R1
|
| 105 |
gr.Markdown(
|
| 106 |
"""
|
| 107 |
## Citation
|
|
@@ -154,7 +154,7 @@ with gr.Blocks(title="Robust-R1: Visual Understanding Demo", theme=gr.themes.Sof
|
|
| 154 |
# Examples
|
| 155 |
gr.Examples(
|
| 156 |
examples=[
|
| 157 |
-
["
|
| 158 |
],
|
| 159 |
inputs=[question_input],
|
| 160 |
label="Example Questions"
|
|
|
|
| 101 |
return f"An error occurred: {str(e)}"
|
| 102 |
|
| 103 |
# Create Gradio interface
|
| 104 |
+
with gr.Blocks(title="Robust-R1", theme=gr.themes.Soft()) as demo:
|
| 105 |
gr.Markdown(
|
| 106 |
"""
|
| 107 |
## Citation
|
|
|
|
| 154 |
# Examples
|
| 155 |
gr.Examples(
|
| 156 |
examples=[
|
| 157 |
+
["What is the name of the Garage?\n0. polo\n1. imam\n2. leke\n3. akd\nFirst output the the types of degradations in image briefly in <TYPE> <TYPE_END> tags, and thenoutput what effects do these degradation have on the image in <INFLUENCE> <INFLUENCE_END> tags, then based on the strength of degradation, output an APPROPRIATE length for the reasoning process in <REASONING> <REASONING_END>tags, and then sunmmarize the content of reasoning and the give the answer in <CONCLUSION> <CONCLUSION_END>tags,provides the user with the answer briefly in<ANSWER> <ANSWER_END>.i.e., <TYPE> degradation type here <TYPE_END>\n<INFLUENCE> influence here<INFLUENCE_END>\n<REASONING> reasoning process here<REASONING_END>\n<CONCLUSION>summary here<CONCLUSION_END>\n<ANSWER>final answer<ANSWER_END>."],
|
| 158 |
],
|
| 159 |
inputs=[question_input],
|
| 160 |
label="Example Questions"
|