Spaces:
Runtime error
Runtime error
Commit
Β·
bdecbdd
1
Parent(s):
99a4497
debugging
Browse files- app.py +2 -2
- interface.py +2 -0
app.py
CHANGED
|
@@ -103,8 +103,8 @@ if __name__ == "__main__":
|
|
| 103 |
"DicomProcessorTool",
|
| 104 |
"ChestXRayClassifierTool",
|
| 105 |
"ChestXRaySegmentationTool",
|
| 106 |
-
"ChestXRayReportGeneratorTool",
|
| 107 |
-
"XRayVQATool",
|
| 108 |
# "LlavaMedTool",
|
| 109 |
# "XRayPhraseGroundingTool",
|
| 110 |
# "ChestXRayGeneratorTool",
|
|
|
|
| 103 |
"DicomProcessorTool",
|
| 104 |
"ChestXRayClassifierTool",
|
| 105 |
"ChestXRaySegmentationTool",
|
| 106 |
+
# "ChestXRayReportGeneratorTool",
|
| 107 |
+
# "XRayVQATool",
|
| 108 |
# "LlavaMedTool",
|
| 109 |
# "XRayPhraseGroundingTool",
|
| 110 |
# "ChestXRayGeneratorTool",
|
interface.py
CHANGED
|
@@ -94,6 +94,8 @@ class ChatInterface:
|
|
| 94 |
history.append({"role": "user", "content": {"path": image_path}})
|
| 95 |
if message is not None:
|
| 96 |
history.append({"role": "user", "content": message})
|
|
|
|
|
|
|
| 97 |
return history, gr.Textbox(value=message, interactive=False)
|
| 98 |
|
| 99 |
async def process_message(
|
|
|
|
| 94 |
history.append({"role": "user", "content": {"path": image_path}})
|
| 95 |
if message is not None:
|
| 96 |
history.append({"role": "user", "content": message})
|
| 97 |
+
|
| 98 |
+
print(f"History: {history}")
|
| 99 |
return history, gr.Textbox(value=message, interactive=False)
|
| 100 |
|
| 101 |
async def process_message(
|