-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
83 lines (67 loc) · 1.93 KB
/
Copy pathmain.py
File metadata and controls
83 lines (67 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import streamlit as st
import pandas as pd
# st.title("Hi, I am turtle code")
# st.header("This is a header")
# st.subheader("This is a subheader")
# st.text("This is a text")
# st.markdown("# Turtle code")
# st.markdown("## Turtle code")
# st.markdown("**Turtle** code")
# st.markdown("*Turtle* code")
# st.markdown(">Turtle code")
# st.markdown("1. Item one\n 2. Item two\n 3. Item three")
# code_string = "print('Hello world!')"
# st.code(code_string)
# st.markdown("---")
# st.markdown("[Google](https://www.google.com)")
# mk_table = """
# | Syntax | Description |
# | ----------- | ----------- |
# | Header | Title |
# | Paragraph | Text |
# """
# st.markdown(mk_table)
# mk_image = ("")
# # st.markdown(mk_image)
# mk_json = {"name": "Anthony", "age": "12", "country": "Japan"}
# st.json(mk_json)
# st.metric(
# label="Min Speed",
# value="70ms",
# delta="-2.9"
# )
# st.metric(
# label="Max Speed",
# value="140ms",
# delta="4.9"
# )
# data_table = {
# "Colmn 1": [1,2,3,4,5],
# "Column 2": [6,7,8,9,10]
# }
# st.table(data_table)
# st.dataframe(data_table)
# emoji_sentence = "That is so funny! :joy:"
# st.markdown(emoji_sentence)
# st.image("media/image.jpg", caption="Hero Image",width=500)
# st.audio("media/audio.oga", width=300, start_time=200)
# st.video("media/video.mp4", width=400, start_time=3)
car_brands = [
"ford",
"honda",
"toyota",
"bugatti",
"hyundai",
"benz",
"mitsubushi",
"bmw"
]
car = st.text_input("Type a car brand")
button = st.button("Check Availability")
if button:
if car == "":
st.write("please enter a valid input")
elif car.lower() in car_brands:
st.write("This brand is avilable in our garage")
elif car.lower() not in car_brands:
st.write("Sorry... This brand is not avilable in our garage")