asmaa1 commited on
Commit
771ee97
·
verified ·
1 Parent(s): ab393dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -15
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
- return response.stdout if response.returncode == 0 else response.stderr
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')