Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import matplotlib.pyplot as plt
|
| 3 |
import networkx as nx
|
|
@@ -5,7 +6,6 @@ from owlready2 import *
|
|
| 5 |
import difflib
|
| 6 |
import tempfile
|
| 7 |
import os
|
| 8 |
-
|
| 9 |
def plot_ontology(search_term, owl_file):
|
| 10 |
"""
|
| 11 |
Loads an ontology OWL file, builds a graph of its classes and subclass relationships,
|
|
@@ -106,7 +106,7 @@ iface = gr.Interface(
|
|
| 106 |
["LLM", "genai.owl"],
|
| 107 |
["RLHF", "genai.owl"]
|
| 108 |
],
|
| 109 |
-
cache_examples=
|
| 110 |
)
|
| 111 |
|
| 112 |
if __name__ == "__main__":
|
|
|
|
| 1 |
+
#Developed by ruslanmv.com
|
| 2 |
import gradio as gr
|
| 3 |
import matplotlib.pyplot as plt
|
| 4 |
import networkx as nx
|
|
|
|
| 6 |
import difflib
|
| 7 |
import tempfile
|
| 8 |
import os
|
|
|
|
| 9 |
def plot_ontology(search_term, owl_file):
|
| 10 |
"""
|
| 11 |
Loads an ontology OWL file, builds a graph of its classes and subclass relationships,
|
|
|
|
| 106 |
["LLM", "genai.owl"],
|
| 107 |
["RLHF", "genai.owl"]
|
| 108 |
],
|
| 109 |
+
cache_examples=True
|
| 110 |
)
|
| 111 |
|
| 112 |
if __name__ == "__main__":
|