Upload InternVL2 implementation
Browse files- app_internvl2.py +3 -4
app_internvl2.py
CHANGED
|
@@ -206,8 +206,7 @@ def create_interface():
|
|
| 206 |
inputs=[input_image, analysis_type],
|
| 207 |
outputs=output_text,
|
| 208 |
fn=process_image,
|
| 209 |
-
cache_examples=True
|
| 210 |
-
examples_dir=cache_dir
|
| 211 |
)
|
| 212 |
except Exception as e:
|
| 213 |
print(f"Warning: Could not load examples: {str(e)}")
|
|
@@ -219,5 +218,5 @@ if __name__ == "__main__":
|
|
| 219 |
# Create the Gradio interface
|
| 220 |
demo = create_interface()
|
| 221 |
|
| 222 |
-
# Launch the interface
|
| 223 |
-
demo.launch(share=False,
|
|
|
|
| 206 |
inputs=[input_image, analysis_type],
|
| 207 |
outputs=output_text,
|
| 208 |
fn=process_image,
|
| 209 |
+
cache_examples=True
|
|
|
|
| 210 |
)
|
| 211 |
except Exception as e:
|
| 212 |
print(f"Warning: Could not load examples: {str(e)}")
|
|
|
|
| 218 |
# Create the Gradio interface
|
| 219 |
demo = create_interface()
|
| 220 |
|
| 221 |
+
# Launch the interface (removed incompatible parameters)
|
| 222 |
+
demo.launch(share=False, server_name="0.0.0.0")
|