Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -59,23 +59,9 @@ if model_config_string.find('"groups": 1,') != -1:
|
|
59 |
|
60 |
f.close()
|
61 |
|
62 |
-
# Function to interact with the Ollama model
|
63 |
|
64 |
-
def query_model(input_text):
|
65 |
-
|
66 |
-
response = subprocess.run(
|
67 |
-
|
68 |
-
["ollama", "run", OLLAMA_MODEL, input_text],
|
69 |
-
|
70 |
-
stdout=subprocess.PIPE,
|
71 |
-
|
72 |
-
stderr=subprocess.PIPE,
|
73 |
-
|
74 |
-
text=True
|
75 |
-
|
76 |
-
)
|
77 |
|
78 |
-
|
79 |
# Load the breast cancer detection model
|
80 |
|
81 |
incept_model = tf.keras.models.load_model('best_model_2.h5')
|
|
|
59 |
|
60 |
f.close()
|
61 |
|
|
|
62 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
|
64 |
+
|
65 |
# Load the breast cancer detection model
|
66 |
|
67 |
incept_model = tf.keras.models.load_model('best_model_2.h5')
|