awacke1 commited on
Commit
2083ded
·
1 Parent(s): bbd3c6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,4 +1,5 @@
1
  # Write a streamlit graphviz python program that creates a graph with two boxes and a line between them. The first box should have an outline with this information: Source Sequence: Question{s1,s2,s3}, Context: {sx,sy,sz}, and Answer: {s1,s2,s3}. The second box should have: Target Sequence: The answer to the question given the context is yes.
 
2
 
3
  # Import required libraries
4
  import streamlit as st
@@ -6,7 +7,7 @@ import graphviz as gv
6
 
7
  # Function to create the Graphviz graph
8
  def create_graph():
9
- g = gv.Digraph('G', filename='graph.gv', engine='dot', format='png')
10
 
11
  # Create the first box
12
  box1_label = 'Source Sequence: Question{s1,s2,s3}\nContext: {sx,sy,sz}\nAnswer: {s1,s2,s3}'
 
1
  # Write a streamlit graphviz python program that creates a graph with two boxes and a line between them. The first box should have an outline with this information: Source Sequence: Question{s1,s2,s3}, Context: {sx,sy,sz}, and Answer: {s1,s2,s3}. The second box should have: Target Sequence: The answer to the question given the context is yes.
2
+ # modify the example not to use filename
3
 
4
  # Import required libraries
5
  import streamlit as st
 
7
 
8
  # Function to create the Graphviz graph
9
  def create_graph():
10
+ g = gv.Digraph('G', engine='dot', format='png')
11
 
12
  # Create the first box
13
  box1_label = 'Source Sequence: Question{s1,s2,s3}\nContext: {sx,sy,sz}\nAnswer: {s1,s2,s3}'