Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,9 +1,8 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
from my_ai_module import MyAIOptimizer
|
| 3 |
|
| 4 |
def process_and_optimize_blueprint(file, requirements):
|
| 5 |
# Instantiate your AI model
|
| 6 |
-
ai_optimizer =
|
| 7 |
|
| 8 |
# Process the blueprint
|
| 9 |
blueprint_features = ai_optimizer.process_blueprint(file)
|
|
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
def process_and_optimize_blueprint(file, requirements):
|
| 4 |
# Instantiate your AI model
|
| 5 |
+
ai_optimizer = gr.Interface.load("models/facebook/dino-vitb16")
|
| 6 |
|
| 7 |
# Process the blueprint
|
| 8 |
blueprint_features = ai_optimizer.process_blueprint(file)
|